<template>
  <div class="pagination" :class="nobg?'nobg':''" ref="pagination">
    <el-pagination layout="prev, pager, next" @change="changePage" :total="total" :pager-count="count" />
  </div>
</template>
<script setup>
defineProps({
  total:{
    type:Number,
    required:true
  },
  count:{
    type:Number,
    required:true
  },
  nobg:{
    type:Boolean,
    default:false
  }
});
const emit=defineEmits(['change'])
const changePage=(e)=>{
  emit('change',e);
};
</script>
